<?php
  class loginAction extends BaseAction 
  {
      public function executeIndex()
      {
          try
          {
            core::$user->login($_POST['email'],$_POST['pass']);         
          } 
          catch( LoginException $e)
          {
              $this->setText($e->getMessage());
              
          }         
      }
      
      public function executeLoguit()
      {
          core::$user->loguit();
      }
  }
?>
